<!-- Modal -->
<div class="modal-dialog wide" style="width: 800px;">
<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">
            <#if xcJjbhz??>
                <#if xcJjbhz.id??>
                    编辑
                <#else>
                    新增
                </#if>
            </#if>
        </h4>
    </div>
    <div class="modal-body">
        <div id="errorMessage"><#include "../../message.ftl" /></div>
        <form class="form-horizontal" role="form" id="xcJjbhzForm" method="post" action="${absoluteContextPath}/xc/xcJjbhz/save">
            <#if xcJjbhz??>
                <#if xcJjbhz.id??>
                    <input type="hidden" name="id" value="${xcJjbhz.id}"/>
                <#else>
                    <input type="hidden" name="id" value=""/>
                </#if>
            </#if>
            <div class="row">
                        <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">录入日期</label>
                <div class="col-sm-6">
                    <input name="entryStart" value="${xcJjbhz.entryStart!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">姓名</label>
                <div class="col-sm-6">
                    <input name="userName" value="${xcJjbhz.userName!''}" type="text" class="form-control"/>
                </div>
            </div>

            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">健康宣教讲解</label>
                <div class="col-sm-6">
                    <input name="jkxjJj" value="${xcJjbhz.jkxjJj!''}" type="text" class="form-control"/>
                </div>
            </div>
                <div class="form-group col-md-6">
                    <label class="col-sm-4 control-label">体检报告讲解</label>
                    <div class="col-sm-6">
                        <input name="tjJj" value="${xcJjbhz.tjJj!''}" type="text" class="form-control"/>
                    </div>
                </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">常规引荐</label>
                <div class="col-sm-6">
                    <input name="jkxjYj" value="${xcJjbhz.jkxjYj!''}" type="text" class="form-control"/>
                </div>
            </div>
                <div class="form-group col-md-6">
                    <label class="col-sm-4 control-label">跟进引荐</label>
                    <div class="col-sm-6">
                        <input name="CLp" value="${xcJjbhz.CLp!''}" type="text" class="form-control"/>
                    </div>
                </div>


            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">BMI大于24</label>
                <div class="col-sm-6">
                    <input name="ALp" value="${xcJjbhz.ALp!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">BMI大于28</label>
                <div class="col-sm-6">
                    <input name="BLp" value="${xcJjbhz.BLp!''}" type="text" class="form-control"/>
                </div>
            </div>
                <div class="form-group col-md-6">
                    <label class="col-sm-4 control-label">讲解预开单量</label>
                    <div class="col-sm-6">
                        <input name="tjGj" value="${xcJjbhz.tjGj!''}" type="text" class="form-control"/>
                    </div>
                </div>
          <#--  <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">C健康礼品</label>
                <div class="col-sm-6">
                    <input name="CLp" value="${xcJjbhz.CLp!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">D健康礼品</label>
                <div class="col-sm-6">
                    <input name="DLp" value="${xcJjbhz.DLp!''}" type="text" class="form-control"/>
                </div>
            </div>-->
         </div>
        </form>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
        <button type="button" class="btn btn-primary" onclick="save();">保存</button>
    </div>
</div>
</div>
<script>
    function save() {
        $("#" + "xcJjbhzForm").ajaxSubmit({
            success:function(data) {
                data = JSON.parse(data);
                if (data.returnCode == 1) {
                    $('#myModal').modal("hide");
                    $.showMessage({parentId:"showMessage",message:"信息保存成功！",type:"success"});
                    refreshTable();
                } else {
                    $.showMessage({parentId:"errorMessage",message:"<strong>错误信息</strong>：" + data.returnMsg,type:"error"});
                }
            }
        });
    }
    $(function () {
        $("input[name=entryStart]").focus(function () {
            WdatePicker({dateFmt: 'yyyy-MM-dd'});
        })


        $("div[class='tooltip fade top in']").hide();
    });
</script>